package com.itheima.aduit.mapper2;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.aduit.pojo.ProcInstance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/22 21:03
 */
public interface ProInstanceMapper extends BaseMapper<ProcInstance> {

    /**
     * 查询申请流程列表
     */
    List<ProcInstance> findInstanceList(@Param("processKey") String processKey,
                                        @Param("processStateList") List<String> processStateList,
                                        @Param("procCurrNodeUserId") String procCurrNodeUserId,
                                        @Param("userId") String userId,@Param("start") Integer start,
                                        @Param("end") Integer end,
                                        @Param("companyId") String companyId);

    Long getCountInstanceList(
                              @Param("companyId") String companyId,
                              @Param("processKey") String processKey,
                              @Param("processStateList") List<String> processStateList,
                              @Param("procCurrNodeUserId") String procCurrNodeUserId,
                              @Param("userId") String userId);
}
